package com.mapper;

import com.entity.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LiuCheng
 * @data 2021/2/5 15:22
 */
@Repository
public interface UserInfoMapper {
    List<UserInfo> getUserInfoList();

    int addUserInfo(UserInfo userInfo);

    int updateUserInfo(@Param("id") int id, @Param("userName") String name);

    List<UserInfo> getUserInfoListOnDepotsTable();

    int addUserInfoOnDepotsTable(UserInfo userInfo);

}
